﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true"
    CodeBehind="EnterpriseCorpKeyInfo.aspx.cs" Inherits="RN.ERP.Web.Enterprise.EnterpriseCorpKeyInfo" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="div1" runat="server">
        <script type="text/javascript">
            function btnSearchClick() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
            }
        </script>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListCorps" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                企业名称：<asp:TextBox ID="txtCorpName" runat="server"></asp:TextBox>
                地区：
                <asp:DropDownList ID="ddlAreaCode" runat="server" Width="100px" AutoPostBack="True">
                </asp:DropDownList>
                是否做Key：
                <asp:DropDownList ID="ddlKeyInfo" runat="server" Width="60px" AutoPostBack="True">
                    <asp:ListItem Text="全部" Value="0"></asp:ListItem>
                    <asp:ListItem Text="已做" Value="1"></asp:ListItem>
                    <asp:ListItem Text="未做" Value="2"></asp:ListItem>
                </asp:DropDownList>
                <input type="button" value="查 询" id="btnSearch" onclick="btnSearchClick()" style="width: 50px" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <telerik:RadGrid ID="ListCorps" runat="server" AutoGenerateColumns="True" CellSpacing="0"
        Width="100%" Culture="zh-CN" GridLines="None" AllowFilteringByColumn="False"
        AllowPaging="true" AllowCustomPaging="true" AllowMultiRowSelection="true" OnNeedDataSource="ListCorps_NeedDataSource"
        AllowSorting="false" ShowStatusBar="true">
        <ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True" EnableRowHoverStyle="true">
            <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                AllowColumnResize="True"></Resizing>
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID">
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
            </RowIndicatorColumn>
            <Columns>
                <telerik:GridTemplateColumn DataField="ID" HeaderText="ID" UniqueName="ID" ReadOnly="true"
                    Visible="false">
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="iTitle" HeaderText="企业名称" HeaderStyle-Width="200px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="AreaCodeName" HeaderText="地区" HeaderStyle-Width="60px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="RegisterDate" HeaderText="注册时间" HeaderStyle-Width="150px">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn DataField="bCaStatus" HeaderText="做Key情况" HeaderStyle-Width="80px">
                <ItemTemplate>
                    <%#Eval("bCAStatus").ToString()=="3"?"未做":"已做" %>
                </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="true">
        </ClientSettings>
        <PagerStyle AlwaysVisible="True" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
